home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / rexx / 2018 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.2 KB

  1. Path: hydra.chem.ualberta.ca!bruce
  2. From: bruce@news.srv.ualberta.ca  (Bruce Clarke)
  3. Newsgroups: comp.lang.rexx
  4. Subject: Re: REXX to check if prog i running?
  5. Date: Tue, 16 Apr 1996 14:56:31
  6. Organization: University of Alberta, Edmonton, Canada
  7. Distribution: inet
  8. Message-ID: <960416145631@hydra.chem.ualberta.ca>
  9. References: <316E6393.597A@rwi.com>
  10. Reply-To: Bruce.Clarke@ualberta.ca
  11. NNTP-Posting-Host: hydra.chem.ualberta.ca
  12. NNTP-Software: PC/TCP NNTP
  13.  
  14. In article <316E6393.597A@rwi.com> Jon Winters <jwinters@rwi.com> writes:
  15.  
  16. > Is theere a REXX script that will check to see if something is running. 
  17. >  I am running a Internet web server and my FTP deamon can keeps 
  18. > crashing.  I would like a REXX script that watches over it and launches 
  19. > it in the event of a crash.  
  20.  
  21. Put this in the rexx script:
  22.  
  23. 'pstat | find "FTPD" | RXQUEUE'
  24.  
  25. Then check if QUEUED()>0. If FTPD is running, there will be lines
  26. in RXQUEUE.
  27.  
  28.  
  29. --
  30. ------------------------------------------------------------
  31. Bruce Clarke            | mailto:Bruce.Clarke@UAlberta.ca
  32. Department of Chemistry | compuserve: 70740,3135
  33. University of Alberta   | ftp://hydra.chem.ualberta.ca
  34. Edmonton AB, T6G 2G2, Canada
  35. http://entropy.chem.ualberta.ca/faculty/clarke/home.htm
  36.  
  37.